package com.example.springboot_zc.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springboot_zc.mapper.lydataMapper;
import com.example.springboot_zc.pojo.LyData;
import com.example.springboot_zc.service.lydataService;
import org.apache.catalina.LifecycleState;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional(rollbackFor = Exception.class)
@Service
public class lydataServiceImpl extends ServiceImpl<lydataMapper, LyData> implements lydataService {
    @Autowired
    lydataMapper lydataMapper;

    public Integer deleteByStu(String stuNum){return lydataMapper.deleteByStu(stuNum);}
    public List<LyData> selectByStu(String stuNum){return lydataMapper.selectByStu(stuNum);}
}
